export const useLog = (action: string, account?: string, operator?: string) => {
  const currentUser = useCurrentUserStore().currentUser;
  $fetch("/api/log/add", {
    body: {
      account: account || currentUser?.account,
      operator: operator || currentUser?.name,
      action: action,
    },
    method: "POST",
  });
};
